﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Automapping;
using MovieDB.Data.Entities;

namespace MovieDB.Data.Configs
{
    public class AutoMapConfiguration : DefaultAutomappingConfiguration
    {
        public override Type GetParentSideForManyToMany(Type left, Type right)
        {
            if (left.Equals(typeof(Movie)))
            {
                return left;
            }
            else if (right.Equals(typeof(Movie)))
            {
                return right;
            }

            return left;
        }
    }
}
